<?php 
class grcogClassAction extends Action
{
	public function defaultAction()
	{
		$type = $this->get('type');
		$this->assign('type', $type);
	}
	

	
	public function yinchang($str)
	{
		if(isempt($str))return '';
		return substr($str,0,3).'****'.substr($str,-4);
	}
	
	//保存
	public function savecheckAction()
	{
		$type = $this->post('type');
		if(isempt($type)){
			$face = $this->post('logo');
			m('users')->update("`face`='$face'", $this->adminid);
		}
		return 'ok';
	}
}